<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/system/cate/save}">
        <input type="hidden" name="id" th:if="${cate}" th:value="${cate.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">分类名称</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="name" placeholder="请输入分类名称" th:value="${cate?.name}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">图标</label>
            <div class="layui-input-inline">
                <input class="layui-input icon" type="text" name="fontIcon" placeholder="请输入图标" th:value="${cate?.fontIcon}">
            </div>
            <div class="layui-form-mid layui-word-aux"><a target="_blank" id="seeIcons"
                                                          style="cursor:pointer;"><i
                    class="layui-icon layui-icon-search"></i> 查看应用包含的图标</a></div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">别名</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="cnName" placeholder="请输入别名" th:value="${cate?.cnName}">
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
    <script type="text/javascript" th:src="@{/js/plugins/jquery-2.2.4.min.js}"></script>
</body>
</html>